<div class="forms">
  <textarea name="report" cols="" rows="" class="ftextarea focus font14" placeholder="请在这里输入举报内容"></textarea>
  <input type="hidden" name="objid" value="{$Think.get.objid}">
  <input type="hidden" name="type" value="{$Think.get.type}">
</div>

<script>
    $(function () {

        $('.J_confirm').click(function (e) {
            var btn = $(this);
            if (btn.hasClass('disabled')) {
                return false;
            }
            btn.addClass('disabled');

            var content = $.trim($("textarea[name='report']").val());
            var objid = $("input[name='objid']").val();
            var type = $("input[name='type']").val();
            if (!content) {
                toast('举报内容不能为空');
                btn.removeClass('disabled');
                return false;
            }
            var question_report_url = '{:U("ajax/ajax_report_save")}';
            $.post(question_report_url, {content: content, objid: objid, type: type}, function (res) {
                if (res.code == 0) {
                    toast(res.msg);
                    btn.removeClass('disabled');
                    return false;
                } else {
                    toast(res.msg, 1);
                    $(".uu_forms_bg,.uu_forms").remove();
                    un_lock_touchmove();
                }
            });

        });
    });

</script>
 